﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectBuilder
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.ReturnValue, AllowMultiple = false)]
    public class DbFieldAttribute : Attribute
    {
        public string FieldName { get; protected set; }

        public bool IsNullable { get; set; }

        public bool IsUniqField { get; set; }

        public DbFieldAttribute(string fieldName)
        {
            IsNullable = true;
            IsUniqField = true;
            FieldName = fieldName;
        }
    }
}
